import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//引入懒加载库
import lazyPlugin from "vue3-lazy";
//引入全局指令
import loadingDirective from "./components/base/loading/directive";
import noResultDirective from "./components/base/no-result/directive";
//引入拼音库
import { pinyin } from "pinyin-pro";
//全局引入样式表
import "@/assets/scss/index.scss";
const app = createApp(App);
lazyPlugin.install(app, {
  loading: require("@/components/base/loading/loading.gif"),
});
app
  .use(store)
  .use(router)
  .use(pinyin)
  .directive("loading", loadingDirective)
  .directive("no-result", noResultDirective)
  .mount("#app");
